import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '订单编号',
    align: "center",
    dataIndex: 'ordersSn'
  },
  {
    title: '购买会员id',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: 'VIP id',
    align: "center",
    dataIndex: 'vipId'
  },
  {
    title: 'VIP名称',
    align: "center",
    dataIndex: 'vipName'
  },
  {
    title: '订单原价',
    align: "center",
    dataIndex: 'totalAmount'
  },
  {
    title: '订单实付',
    align: "center",
    dataIndex: 'payAmount'
  },
  {
    title: '支付方式',
    align: "center",
    dataIndex: 'payType'
  },
  {
    title: '订单状态',
    align: "center",
    dataIndex: 'ordersStatus'
  },
  {
    title: '订单备注',
    align: "center",
    dataIndex: 'note'
  },
  {
    title: '订单来源',
    align: "center",
    dataIndex: 'sourceType'
  },
  {
    title: '软件版本',
    align: "center",
    dataIndex: 'sourceVersion'
  },
  {
    title: 'tenantId',
    align: "center",
    dataIndex: 'tenantId'
  },
  {
    title: '删除状态(0-正常,1-已删除)',
    align: "center",
    dataIndex: 'delFlag'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '订单编号',
    field: 'ordersSn',
    component: 'Input',
  },
  {
    label: '购买会员id',
    field: 'memberId',
    component: 'Input',
  },
  {
    label: 'VIP id',
    field: 'vipId',
    component: 'Input',
  },
  {
    label: 'VIP名称',
    field: 'vipName',
    component: 'Input',
  },
  {
    label: '订单原价',
    field: 'totalAmount',
    component: 'InputNumber',
  },
  {
    label: '订单实付',
    field: 'payAmount',
    component: 'InputNumber',
  },
  {
    label: '支付方式',
    field: 'payType',
    component: 'InputNumber',
  },
  {
    label: '订单状态',
    field: 'ordersStatus',
    component: 'InputNumber',
  },
  {
    label: '订单备注',
    field: 'note',
    component: 'Input',
  },
  {
    label: '订单来源',
    field: 'sourceType',
    component: 'InputNumber',
  },
  {
    label: '软件版本',
    field: 'sourceVersion',
    component: 'Input',
  },
  {
    label: 'tenantId',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '删除状态(0-正常,1-已删除)',
    field: 'delFlag',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
